<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>JavaScript Password Generator</title>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta name="description" content="Password Generator, JavaScript password generator, 2" />
<meta name="keywords" content="password generator, JavaScript password generator" />
<meta name="robots" content="all" />
<script type="text/javascript">
/* <![CDATA[ */
function PWD(a,m) {
var m
var a
if(!a) { a == "6" }
    if(m == "0") { var chars = "1234506789"; }
    if(m == "1") { var chars = "^[_]!#$%&()<=>{}|?@*+-0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ~abcdefghijklmnopqrstuvwxyz"; }
	if(m == "2") { var chars = "0123456789abcdef"; }
	if(m == "3") { var chars = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz"; }
	if(m == "4") { var chars = "101"; }
	if(m == "5") { var chars = "435XH781$xr!x0fORoi-+^@~|_|)(/"; }
	if(m == "6") { var chars = "AaĀāBbCcČčDdEeĒēFfGgĢģHhIiĪīJjKkĶķLlĻļMmNnŅņOoPpRrSsŠšTtUuŪūVvZzŽž"; }
	if(m == "7") { var chars = "АаБбВвГгДдЕеЁёЖжЗзИиЙйКкЛлМмНнОоПпРрСсТтУуФфХхЦцЧчШшЩщЪъЫыЬьЭэЮюЯя"; }
	var pass = ""
	    for (x=0; x < a; x++){
			rand  = Math.random() * chars.length;
			genn = Math.round(rand);
			while (genn<=0){
              	   genn++;
       			}
		 pass+=chars.charAt(genn);
		}
	return pass;
}
function translate(){
txt=document.password.subject.value;
cik=document.password.cik.value;
mm=document.password.mm.value;
var txtnew=PWD(cik,mm);
document.password.subject.value=txtnew;
document.password.subject.focus();
return;
}
/* ]]> */
</script>
</head>
<body>
<h1>JavaScript Password Generator</h1>
<p>Only you see your password. It is only JavaScript ;)</p>
<form name="password" method="post" action="">
    <div> Length:
        <input onchange="translate()" value="12" name="cik" type="text" size="3" maxlength="3" />
        Style:
        <select name="mm" onchange="translate()">
            <option value="1">Mixed</option>
            <option value="0">Numbers</option>
            <option value="2">Hexadecimal</option>
            <option value="3">Letters</option>
            <option value="4">Binary</option>
            <option value="5">Hackers</option>
            <option value="6">Latvian</option>
            <option value="7">Russian</option>
        </select>
    </div>
    <div>
        <textarea onkeyup="translate()" name="subject" id="subject" rows="3" cols="74"></textarea>
    </div>
</form>
<h2>
    <button onclick="translate()">Generate</button>
</h2>
<p> Links: <a href="http://en.wikipedia.org/wiki/Password_strength">Password strength - Wikipedia, the free encyclopedia</a> </p>
<p> Copyright &copy; <a href="http://www.21andy.com/">21Andy.com</a> Strong Random Password Generator, 2008. All Rights Reserved. </p>
</body>
</html>
